package scdm.team.noone.weatherlivewallpaper;

import java.util.concurrent.ExecutionException;

import scmd.team.noone.weatherlivewallpaper.serviceforecast.GetWeatherInfo;
import scmd.team.noone.weatherlivewallpaper.serviceforecast.WeatherInfo;
import android.app.Activity;
import android.os.Bundle;
import android.widget.TextView;
import scmd.team.noone.weatherlivewallpaper.common.RequestTask;

public class WeatherInfoReaderActivity extends Activity {
	GetWeatherInfo gwi = new GetWeatherInfo();
	TextView tv1;
	WeatherInfo wInfor;

	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.widgets);

		try {
			wInfor = GetWeatherInfo.ReadWeatherInfo(new RequestTask().execute(
					gwi.getUrlRequest()).get());
		} catch (InterruptedException e) {
			
			e.printStackTrace();
		} catch (ExecutionException e) {
			
			e.printStackTrace();
		}
//		tv1 = (TextView) findViewById(R.id.tv1);
//		tv1.setText(wInfor.toString());

	}

}